package com.ln.lnzw.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ln.lnzw.R;
import com.ln.lnzw.bean.CommonProblemBean;

import java.util.List;

/**
 * Created by wuwei on 2018/5/4.
 * 常见问题适配器
 */

public class CommonProblemAdapter extends BaseQuickAdapter<CommonProblemBean.ListDatasBean,BaseViewHolder> {
    public CommonProblemAdapter(int layoutResId, @Nullable List<CommonProblemBean.ListDatasBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CommonProblemBean.ListDatasBean item) {
              helper.setText(R.id.tv_problem,item.getTitle()).setText(R.id.tv_answer,item.getDoccontent());
    }
}
